<!DOCTYPE html>
<extend name="Base/base" />
<block name='head'>  
    <meta charset="utf-8">
    <link href="/Public/Index/css/diary.css" rel="stylesheet" /> 
    <link href="/Public/Index/css/workflow.css" rel="stylesheet" />
    <style type="text/css">
        
         .textarea{
            display:inline-block;
            border:1px solid #CFDDEA;
            height:4em;
        }
        .textarea span{margin-right:0.5em}
        .textarea,textarea{
            width:60%;
            padding:0.3em;
        }
        .top{
            height:5px;
        }
        
    </style>
</block>
<block name="content" > 
    <form enctype="multipart/form-data" name="form1">
        <input type="hidden" name="DIA_ID" value="{$data.dia_id}">
        <input type="hidden" name="user_to" value="{$data.user_id}">
        <input type="hidden" name="week_id" value="{$info.id}">
        <input type="hidden" name="user_id" value="{$info.user_id}">
        <div class="bd">
            <div class="work_cells trip_next">
                <p class="top"></p>
                <table class="TableTop" width="100%">
                    <tr>
                        <td class="left"></td>
                        <td class="center subject">
                            {$info.title}
                        </td>
                        <td class="right"></td>
                    </tr>
                    <tr>
                        <td class="left"></td>
                        <td class="center subject">
                            <textarea style="width:80%;height:20em;border:none;border:1px solid #CFDDEA" readonly>{$info.content}</textarea>
                        </td>
                        <td class="right"></td>
                    </tr>
                    <tr>
                        <td class="left"></td>
                        <td class="center subject">
                            <textarea name="CONTENT" style="width:80%;height:10em;border:none;border:1px solid #CFDDEA" placeholder="在此填写评论内容"></textarea>
                        </td>
                        <td class="right"></td>
                    </tr>
                </table>
                <p class="top"></p>
                <div class="TableTop" style="overflow-y:auto;overflow-x:auto;width=100%;height=100%">
                    
                </div>
            </div>
            <div class="button">
                <span>
                    <a class="pointer btn-submit ajax-post" data-verify="all" data-url="{:U('addComment',array('id'=>$info['id'],'type'=>'weekly'))}" data-form="">提交评论</a>
                </span>
            </div>
        </div>
    </form>
    <div class="button">
        <a class="am-btn" onclick="history.go(-1)">返 回</a>
    </div>

</block>
<block name="script">
    <script type="text/javascript" src="/Public/Index/js/diary.js"></script>
    <script type="text/javascript">
             $(dateTime());
             $(initAddDiary());
    </script>
</block>
